﻿@model Identity.Api.Models.AccountViewModels.RegisterViewModel

<div class="container">
    <h1 class="mb-4 mt-5">[ New Account ]</h1>
    <form asp-controller="Account" asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-register">
        <h4 class="order-create-section-title">Information</h4>
        <div asp-validation-summary="All" class="text-danger"></div>
        <div class="row">
            <div class="form-group col-sm-6">
                <label asp-for="User.UserName" class="control-label form-label">用户名</label>
                <input asp-for="User.UserName" class="form-control form-input" />
                <span asp-validation-for="User.UserName" class="text-danger" />
            </div>
            <div class="form-group col-sm-6">
                <label asp-for="User.Country" class="control-label form-label">国家</label>
                <input asp-for="User.Country" class="form-control form-input" />
                <span asp-validation-for="User.Country" class="text-danger" />
            </div>

            <div class="form-group col-sm-6">
                <label asp-for="User.Province" class="control-label form-label">省</label>
                <input asp-for="User.Province" class="form-control form-input" />
                <span asp-validation-for="User.Province" class="text-danger" />
            </div>
            <div class="form-group col-sm-6">
                <label asp-for="User.City" class="control-label form-label">市</label>
                <input asp-for="User.City" class="form-control form-input" />
                <span asp-validation-for="User.City" class="text-danger" />
            </div>
            <div class="form-group col-sm-6">
                <label asp-for="User.Zone" class="control-label form-label">区</label>
                <input asp-for="User.Zone" class="form-control form-input" />
                <span asp-validation-for="User.Zone" class="text-danger" />
            </div>

            <div class="form-group col-sm-6">
                <label asp-for="User.PhoneNumber" class="control-label form-label">手机号</label>
                <input asp-for="User.PhoneNumber" class="form-control form-input" />
                <span asp-validation-for="User.PhoneNumber" class="text-danger" />
            </div>
        </div>

        <br /><br />
        <div class="row">
            <div class="form-group col-sm-6">
                <label asp-for="Email" class="control-label form-label">邮箱</label>
                <input asp-for="Email" class="form-control form-input" />
                <span asp-validation-for="Email" class="text-danger"></span>
            </div>
            <div class="form-group col-sm-offset-6"></div>
            <div class="form-group col-sm-6">
                <label asp-for="Password" class="control-label form-label">密码</label>
                <input asp-for="Password" class="form-control form-input" />
                <span asp-validation-for="Password" class="text-danger"></span>
            </div>
            <div class="form-group col-sm-6">
                <label asp-for="ConfirmPassword" class="control-label form-label">确认密码</label>
                <input asp-for="ConfirmPassword" class="form-control form-input" />
                <span asp-validation-for="ConfirmPassword" class="text-danger"></span>
            </div>
        </div>
        <br /><br />
        <div class="d-flex mt-3 justify-content-end">
            <button type="submit" class="btn btn-primary">Register</button>
        </div>
        <br /><br />
    </form>
</div>
